#include "content.h"
#include "util/cvutil.h"
Content::Content()
{
    id = "";
    title = "";
    description = "";
    timeCreated = "";
    timeUpdated = "";
    owner = "";
    ownerIcon = "";
    comments = new QList<Comment *>();
}

Content::~Content()
{
    delete comments;
}

QString Content::getId()
{
    return this->id;
}

QString Content::getTitle()
{
    return this->title;
}

QString Content::getDescription()
{
    return CVUtil::filterString(this->description);
}

QString Content::getTimeCreated()
{
    return this->timeCreated;
}

QString Content::getTimeUpdated()
{
    return this->timeUpdated;
}

QString Content::getOwner()
{
    return this->owner;
}

QString Content::getOwnerIcon()
{
    return this->ownerIcon;
}

QList<Comment *> *Content::getComments()
{
    return this->comments;
}

void Content::setId(const QString &id)
{
    this->id = id;
}

void Content::setTitle(const QString &title)
{
    this->title = title;
}

void Content::setDescription(const QString &description)
{
    this->description = description;
}

void Content::setTimeCreated(const QString &timeCreated)
{
    this->timeCreated = timeCreated;
}

void Content::setTimeUpdated(const QString &timeUpdated)
{
    this->timeUpdated = timeUpdated;
}

void Content::setOwner(const QString &owner)
{
    this->owner = owner;
}

void Content::setOwnerIcon(const QString &ownerIcon)
{
    this->ownerIcon = ownerIcon;
}

void Content::setComments(QList<Comment *> *comments)
{
    this->comments = comments;
}
